ages = {
    "tom" :18,
    "jack":19,
    "rom":20,
}

print("-------------------------")
#新增
ages["张三丰"] = 65
ages.setdefault("zhang",26)

#删除
ages.pop("jack")

#修改
ages["张三丰"] = 20

#查询
print(ages["zhang"])
print("tom"in ages)  #判断是否包含

print(ages,type(ages))


